﻿#region Copyright (C) Sector7 Software Studio. All rights reserved
/*******************************************************************************************
 * Creation
 *      Author:         Wolf Lai
 *      Date:           2013/3/26 星期二 20:41:48
 *      Version:        
 * Modification 
 *      Author: 
 *      Date: 
 *      Description: 
 *      Version:
 *******************************************************************************************/
#endregion
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using Sector7.Framework.Core;

namespace Sector7.Framework.EntityType
{
    /// <summary>
    /// 元数据（数据元在系统中的内部映射）
    /// </summary>
    [Serializable()]
    [DataContract]
    public class S7_Metadata : S7_DataElement
    {
        #region Accessor
        /// <summary>
        /// 元数据编号
        /// </summary>
        [DataMember]
        [DBFieldAttribute]
        public string MetadataId { get; set; }

        /// <summary>
        /// 获取或设置数据库表中列名称
        /// </summary>
        [DataMember]
        [DBFieldAttribute]
        public string ColumnName { get; set; }

        /// <summary>
        /// 获取或设置数据库表中列是否可以为空
        /// </summary>
        [DataMember]
        [DBFieldAttribute]
        public bool IsNull { get; set; }

        /// <summary>
        /// 获取和设置数据库列表是否为子增长类型
        /// </summary>
        [DataMember]
        [DBFieldAttribute]
        public bool isAuto { get; set; }

        /// <summary>
        /// 获取或设置数据库表中列键类型
        /// </summary>
        [DataMember]
        [DBFieldAttribute]
        public int KeyType { get; set; }

        #endregion
    }
}
